package FIT::Class;

use strict;
use warnings;
use Module::Compile -base;
use aliased 'FIT::Module::Compiler';

# NOTE: changes here require clearing all **/*.p(l|m)c files in project!

sub pmc_compile {
    my ($class, $src) = @_;
    my $compiled_output = Compiler->compile(
        src => $src,
        use => [qw(
            Moose
            Moose::Util::TypeConstraints
            Params::Coerce
        )],
    );
    return $compiled_output;
}

1;
